package academic.ui.client.event;


import com.google.gwt.event.shared.GwtEvent;
import com.gwtplatform.mvp.client.EventBus;

public class NewGameEvent extends GwtEvent<NewGameEventHandler>{

	
	private static final Type<NewGameEventHandler> TYPE = new Type<NewGameEventHandler>();
	
	public NewGameEvent() {
	}

	public static Type<NewGameEventHandler> getType() {
		return TYPE;
	}
	
	public static void fire(EventBus eventBus, String note) {
		eventBus.fireEvent(new NewGameEvent());
	}
	
	@Override
	protected void dispatch(NewGameEventHandler handler) {
		handler.onNewGameEvent(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<NewGameEventHandler> getAssociatedType() {
		return getType();
	}

}
